<template>
	<view>
		<my-issue @submit="submit" key="1" :score="5" />
	</view>
</template>

<script>
	import myIssue from '@/components/myIssue/myIssue.vue'
	import { getAddEvaluate } from '@/api/home.js'
	export default {
		components:{myIssue},
		data() {
			return {
				orderId: 'ots72703101368438807643991'
			}
		},
		onLoad(event) {
			this.orderId = event.orderId
		},
		methods: {
			submit(obj) {
				obj.order_id = this.orderId
				getAddEvaluate(obj).then(res => {
					if (res.code === 1) {
						this.$showToast(res.msg)
						setTimeout(() => {
							uni.navigateBack()
						}, 500)
					} else {
						this.$showToast(res.msg)
					}
				})
			}
		}
	}
</script>

<style>

</style>
